package fr.emn.integration.synthese.controle.EleveDialog;

import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Observable;
import java.util.Observer;

import javax.swing.JButton;
import javax.swing.JTable;

import fr.emn.integration.synthese.abstraction.Cours;
import fr.emn.integration.synthese.presentation.JTableEleveModel;
import fr.emn.integration.synthese.presentation.JTableModulesModel;

public class ControlJButtonAddRowEleveDialog implements ActionListener {

	private Cours modele;
	private JTable listeModules;
	private Frame parent;

	public ControlJButtonAddRowEleveDialog(Frame parent, Cours modele, JTable listeModules) {
		this.modele = modele;
		this.listeModules = listeModules;
		this.parent = parent;
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		Object[] donnee = new Object[]{"", "", false};
		((JTableModulesModel) listeModules.getModel()).addRow(donnee);
	}

}
